-- GENERATED SPELL FOR [Specialist Cogwheel] --


function spell0_28284(pUnit, Event) --@Webs,Self--
pUnit:FullCastSpellOnTarget(51322,pUnit)
pUnit:RegisterEvent('Sorts_28284', 641, 1)
end

function Sorts_28284(pUnit, Event)
local choix_sorts_28284 = math.random(0, 0)
if choix_sorts_28284 == 0 then
pUnit:RegisterEvent('spell0_28284', 1, 1)
end
end

function mob28284_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28284', math.random(1500, 3000), 1)
end

function mob28284_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28284_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28284_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28284, 1, 'mob28284_Action')
RegisterUnitEvent(28284, 2, 'mob28284_Leave')
RegisterUnitEvent(28284, 3, 'mob28284_Kill')
RegisterUnitEvent(28284, 4, 'mob28284_Die')
